<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text,v-html</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>
<body>
    <div id="box">
        {{name}}
        <h1 v-text="name"></h1>
        <span v-text="link"></span><br>
        <span v-html="link"></span><br>
        <span v-html="name"></span>
    </div>

    <!-- 不生效 -->
    <br>{{name}}
</body>
<script>
    const vm = new Vue({
        //该节点内可以使用vue组件
        el:"#box",
        data(){
            return{
                name:"欢迎来到对抗路",
                link:`<h1>点下面进行跳转</h1>
                <a href="https://www.woniuxy.com/">欢迎跳转到蜗牛</a>`
            }
        }
    });
</script>
</html>